package com.zzyl.controller.customer;

import com.github.pagehelper.Page;
import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.service.CustomerNursingProjectService;
import com.zzyl.vo.NursingProjectVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "客户护理项目")
@RequestMapping("/customer/orders/project")
@RequiredArgsConstructor
public class CustomerNursingProjectController {
    private final CustomerNursingProjectService customerNursingProjectService;
    @GetMapping("/page")
    @ApiOperation("分页查询客户护理项目")
    public ResponseResult CustomerPage(String name, Integer status, Integer pageNum, Integer pageSize){
        PageResponse<NursingProjectVo> nursingProjectVoPage = customerNursingProjectService.selectPage(name, status, pageNum, pageSize);
        return ResponseResult.success(nursingProjectVoPage);

    }
}
